﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using ZJ_WangSir;
using MyIdolUIFrameWork;

public class UIEvaluate :  UIScene
{
    private UISceneWidget goEvaluateBtn;
    private UISceneWidget cancelEvaluate;

    protected override void Start()
    {
        base.Start();
        InitWeight();
    }

    private void InitWeight()
    {
        goEvaluateBtn = GetWidget("Go");
        goEvaluateBtn.onClick += GoEvaluateClick;
        cancelEvaluate = GetWidget("No");
        cancelEvaluate.onClick += CancelEvaluateClick;
    }

    private void GoEvaluateClick()
    {
        transform.GetComponent<GoToEvaluate>().GoEvluateButtonEvent();
    }

    private void CancelEvaluateClick()
    {
        SetVisible(false);
    }
}
